/* 推荐工具列表样式 */
.tool-list {
    list-style: none;
    padding: 0;
}

.tool-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.tool-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tool-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hover-color);
    border-radius: 10px;
}

.tool-info {
    flex: 1;
}

.tool-info h4 {
    margin: 0 0 0.3rem;
    color: var(--text-color);
}

.tool-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* 代码片段样式 */
pre {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Fira Code', monospace;
    color: var(--text-color);
}

/* 快捷键样式 */
.shortcut-key {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--hover-color);
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    margin: 0 0.2rem;
}

/* 工具卡片动画 */
.post-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* 插件推荐样式 */
.plugin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.plugin-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.plugin-card:hover {
    transform: translateY(-3px);
}

.plugin-name {
    font-weight: bold;
    color: var(--link-color);
    margin-bottom: 0.5rem;
}

.plugin-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

/* 命令行示例样式 */
.terminal {
    background: #1e1e1e;
    color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-family: 'Fira Code', monospace;
}

.terminal-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.terminal-prompt {
    color: #0f0;
    margin-right: 1rem;
}

.terminal-command {
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .plugin-list {
        grid-template-columns: 1fr;
    }

    .tool-list li {
        flex-direction: column;
        text-align: center;
    }

    .tool-icon {
        margin-bottom: 0.5rem;
    }
}

/* 暗色主题适配 */
[data-theme="dark"] .terminal {
    background: #000;
}

[data-theme="dark"] .terminal-prompt {
    color: #0f0;
}

[data-theme="dark"] .terminal-command {
    color: #fff;
}

/* 工具分类标签 */
.tool-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--hover-color);
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 工具评分 */
.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.stars {
    color: #f1c40f;
}

.rating-count {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
} 